﻿namespace LaserMark.Components.Events;

/// <summary>
/// 
/// </summary>
public class RibbonTabEvent
{
    /// <summary>
    /// 
    /// </summary>
    public string EventName { get; }

    /// <summary>
    /// 
    /// </summary>
    public Func<RibbonTabEventMessage, Task> EventHandler { get; }

    /// <summary>
    /// 构造函数
    /// </summary>
    /// <param name="eventName"></param>
    /// <param name="eventHandler"></param>
    public RibbonTabEvent(string eventName, Func<RibbonTabEventMessage, Task> eventHandler)
    {
        EventName = eventName;
        EventHandler = eventHandler;
    }
}
